using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Openapi.Weibo.Model;
using RestSharp;

namespace Openapi.Weibo.Api
{
    public class StatusesApi:ApiBase
    {
        public StatusesApi(RestApi rest)
            : base(rest)
        {
            
        }
		#region Methods
        
		public Statuses PublicTimeline(int count = 20)
		{
			return this.ExecuteApi<Statuses>("statuses/public_timeline.json", Method.GET, new Parameter[]
			{ 
			new Parameter{Name = "count",Value=count,Type=ParameterType.GetOrPost}
 
			});
		}
        
		public Statuses Friends_Timeline(long since_id = 0, long max_id = 0, int count = 20, int page = 1, int base_app = 0, int feature = 0, int trim_user = 0)
		{
			return this.ExecuteApi<Statuses>("friends_timeline.json", Method.GET, new Parameter[]
			{ 
			new Parameter{Name = "since_id",Value=since_id,Type=ParameterType.GetOrPost},
	new Parameter{Name = "max_id",Value=max_id,Type=ParameterType.GetOrPost},
	new Parameter{Name = "count",Value=count,Type=ParameterType.GetOrPost},
	new Parameter{Name = "page",Value=page,Type=ParameterType.GetOrPost},
	new Parameter{Name = "base_app",Value=base_app,Type=ParameterType.GetOrPost},
	new Parameter{Name = "feature",Value=feature,Type=ParameterType.GetOrPost},
	new Parameter{Name = "trim_user",Value=trim_user,Type=ParameterType.GetOrPost}
 
			});
		}
		#endregion
    }
}
